home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / boekhoud / finan / BADGER finance v1.0 beta 2.exe / xampplite / phpMyAdmin / config.inc.php < prev    next >
PHP Script  |  2005-12-05  |  38KB  |  810 lines

  1. <?php
  2.  
  3. /* $Id: config.default.php,v 2.20.2.1 2005/11/23 10:34:32 nijel Exp $ */
  4. // vim: expandtab sw=4 ts=4 sts=4:
  5.  
  6. /**
  7.  * phpMyAdmin Configuration File
  8.  *
  9.  * All directives are explained in Documentation.html
  10.  */
  11.  
  12.  
  13. /**
  14.  * Your phpMyAdmin URL.
  15.  *
  16.  * Complete the variable below with the full url ie
  17.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  18.  *
  19.  * It must contain characters that are valid for a URL, and the path is
  20.  * case sensitive on some Web servers, for example Unix-based servers.
  21.  *
  22.  * In most cases you can leave this variable empty, as the correct value
  23.  * will be detected automatically. However, we recommend that you do
  24.  * test to see that the auto-detection code works in your system. A good
  25.  * test is to browse a table, then edit a row and save it.  There will be
  26.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  27.  */
  28. $cfg['PmaAbsoluteUri'] = '';
  29.  
  30. /**
  31.  * Disable the default warning that is displayed on the DB Details Structure page if
  32.  * any of the required Tables for the relationfeatures could not be found
  33.  */
  34. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  35.  
  36. /**
  37.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  38.  * at least one server configuration uses 'cookie' auth_type, enter here a
  39.  * passphrase that will be used by blowfish. The maximum length seems to be 46
  40.  * characters.
  41.  */
  42. $cfg['blowfish_secret'] = 'xampp';
  43.  
  44. /**
  45.  * Server(s) configuration
  46.  */
  47. $i = 0;
  48. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use
  49. // $cfg['Servers'][0]. You can disable a server config entry by setting host
  50. // to ''. If you want more than one server, just copy following section
  51. // (including $i incrementation) serveral times. There is no need to define
  52. // full server array, just define values you need to change.
  53. $i++;
  54. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  55. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  56. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  57. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  58. $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
  59. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  60.                                                     // (requires PHP >= 4.3.0)
  61. $cfg['Servers'][$i]['controluser']   = 'pma';          // MySQL control user settings
  62.                                                     // (this user must have read-only
  63. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  64.                                                     // and "mysql/db" tables).
  65.                                                     // The controluser is also
  66.                                                     // used for all relational
  67.                                                     // features (pmadb)
  68. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  69. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  70. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  71.                                                     // with 'config' auth_type)
  72. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  73.                                                     // this db is displayed in left frame
  74.                                                     // It may also be an array of db-names, where sorting order is relevant.
  75. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  76.  
  77. $cfg['Servers'][$i]['pmadb']         = 'phpmyadmin';          // Database used for Relation, Bookmark and PDF Features
  78.                                                     // (see scripts/create_tables.sql)
  79.                                                     //   - leave blank for no support
  80.                                                     //     DEFAULT: 'phpmyadmin'
  81. $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';          // Bookmark table
  82.                                                     //   - leave blank for no bookmark support
  83.                                                     //     DEFAULT: 'pma_bookmark'
  84. $cfg['Servers'][$i]['relation']      = 'pma_relation';          // table to describe the relation between links (see doc)
  85.                                                     //   - leave blank for no relation-links support
  86.                                                     //     DEFAULT: 'pma_relation'
  87. $cfg['Servers'][$i]['table_info']    = 'pma_table_info';          // table to describe the display fields
  88.                                                     //   - leave blank for no display fields support
  89.                                                     //     DEFAULT: 'pma_table_info'
  90. $cfg['Servers'][$i]['table_coords']  = 'pma_table_coords';          // table to describe the tables position for the PDF schema
  91.                                                     //   - leave blank for no PDF schema support
  92.                                                     //     DEFAULT: 'pma_table_coords'
  93. $cfg['Servers'][$i]['pdf_pages']     = 'pma_pdf_pages';          // table to describe pages of relationpdf
  94.                                                     //   - leave blank if you don't want to use this
  95.                                                     //     DEFAULT: 'pma_pdf_pages'
  96. $cfg['Servers'][$i]['column_info']   = 'pma_column_info';          // table to store column information
  97.                                                     //   - leave blank for no column comments/mime types
  98.                                                     //     DEFAULT: 'pma_column_info'
  99. $cfg['Servers'][$i]['history']       = 'pma_history';          // table to store SQL history
  100.                                                     //   - leave blank for no SQL query history
  101.                                                     //     DEFAULT: 'pma_history'
  102. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  103.                                                     // are up to date. This prevents compatibility
  104.                                                     // checks and thereby increases performance.
  105. $cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login
  106. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  107.                                      = '';
  108. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  109.                                      = array();
  110.  
  111. // If you have more than one server configured, you can set $cfg['ServerDefault']
  112. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  113. // or set it to 0 to be given a list of servers without logging in
  114. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  115. // set to that server.
  116. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
  117.  
  118. /**
  119.  * Other core phpMyAdmin settings
  120.  */
  121. $cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
  122. $cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
  123. $cfg['ForceSLL']                = FALSE;  // whether to force using https
  124. $cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
  125. $cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
  126.                                           // locked tables (since MySQL 3.23.30)
  127. $cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
  128. $cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
  129. $cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  130. $cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
  131. $cfg['LoginCookieValidity']     = 1800;   // validity of cookie login (in seconds)
  132. $cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
  133.                                           // or not
  134. $cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
  135.                                           // even if one of the queries failed
  136. $cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
  137.                                           // multiple-statement queries. See the libraries/import.php file for 
  138.                                           // hardcoded defaults on how many queries a statement may contain!
  139. $cfg['AllowArbitraryServer']    = FALSE;  // allow login to any user entered server in cookie based auth
  140.  
  141. // Left frame setup
  142. $cfg['LeftFrameLight']        = TRUE;    // use a select-based menu and display only the
  143.                                          // current tables in the left frame.
  144. $cfg['LeftFrameDBTree']       = TRUE;    // turn the select-based light menu into a tree
  145. $cfg['LeftFrameDBSeparator']  = '_';     // the separator to sub-tree the select-based light menu tree
  146. $cfg['LeftFrameTableSeparator']= '__';   // Which string will be used to generate table prefixes
  147.                                          // to split/nest tables into multiple categories
  148. $cfg['LeftFrameTableLevel']   = '1';     // How many sublevels should be displayed when splitting
  149.                                          // up tables by the above Separator
  150. $cfg['ShowTooltip']           = TRUE;    // display table comment as tooltip in left frame
  151. $cfg['ShowTooltipAliasDB']    = FALSE;   // if ShowToolTip is enabled, this defines that table/db comments
  152. $cfg['ShowTooltipAliasTB']    = FALSE;   // are shown (in the left menu and db_details_structure) instead of
  153.                                          // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
  154.                                          // use the Aliases for nested descriptors, not the table itself.
  155.  
  156. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  157. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  158. $cfg['DisplayServersList']    = FALSE;  // server choice as links
  159.  
  160. // In the main frame, at startup...
  161. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  162.                                         // the pages about database details and table
  163.                                         // properties
  164. $cfg['ShowPhpInfo']           = FALSE;  // information" and "change password" links for
  165. $cfg['ShowChgPassword']       = FALSE;  // simple users or not
  166. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)
  167.  
  168. // In browse mode...
  169. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  170. $cfg['NavigationBarIconic']   = 'both'; // Use icons instead of text for the navigation bar buttons
  171.                                         // and on right panel top menu (server db table) (TRUE|FALSE|'both')
  172. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  173. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  174. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  175.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  176.                                         // descending order for fields of type
  177.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  178.                                         // ascending order else-)
  179.  
  180. // In edit mode...
  181. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  182.                                         // valid values are:
  183.                                         //   FALSE  allow editing
  184.                                         //   'blob' allow editing except for BLOB fields
  185.                                         //   'all'  disallow editing
  186. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  187. $cfg['CharEditing']           = 'input';
  188.                                         // Which editor should be used for CHAR/VARCHAR fields:
  189.                                         //  input - allows limiting of input length
  190.                                         //  textarea - allows newlines in fields
  191. $cfg['InsertRows']            = 2;      // How many rows can be inserted at one time
  192.  
  193. $cfg['ForeignKeyDropdownOrder'] =       // Sort order for items in a foreign-key dropdown box. 
  194.     array( 'content-id', 'id-content'); // 'content' is the referenced data, 'id' is the key value.
  195. $cfg['ForeignKeyMaxLimit'] = 100;       // A dropdown will be used if fewer items are present
  196.  
  197.  
  198. // For the export features...
  199. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  200. $cfg['GZipDump']              = TRUE;   // compression for
  201. $cfg['BZipDump']              = TRUE;   // dump files
  202. $cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
  203.                                         // fly without need for much memory.
  204.                                         // If you encounter problems with
  205.                                         // created gzip/bzip2 files disable
  206.                                         // this feature.
  207.  
  208. // Tabs display settings
  209. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  210. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  211. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  212.                                         // (a value larger than 1 results in some information being hidden)
  213.  
  214. $cfg['DefaultTabServer']      = 'main.php';
  215.                                    // Possible values:
  216.                                    // 'main.php' = the welcome page
  217.                                    // (recommended for multiuser setups)
  218.                                    // 'server_databases.php' = list of databases
  219.                                    // 'server_status.php' = runtime information
  220.                                    // 'server_variables.php' = MySQL server variables
  221.                                    // 'server_privileges.php' = user management
  222.                                    // 'server_processlist.php' = process list
  223. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  224.                                    // Possible values:
  225.                                    // 'db_details_structure.php' = tables list
  226.                                    // 'db_details.php' = sql form
  227.                                    // 'db_search.php' = search query
  228.                                    // 'db_operations.php' = operations on database
  229. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  230.                                    // Possible values:
  231.                                    // 'tbl_properties_structure.php' = fields list
  232.                                    // 'tbl_properties.php' = sql form
  233.                                    // 'tbl_select.php = select page
  234.                                    // 'tbl_change.php = insert row page
  235.  
  236. /**
  237.  * Export defaults
  238.  */
  239.  
  240. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml/xls/htmlexcel/htmlword
  241. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2
  242.  
  243. $cfg['Export']['asfile']                    = FALSE;
  244. $cfg['Export']['charset']                   = '';
  245. $cfg['Export']['onserver']                  = FALSE;
  246. $cfg['Export']['onserver_overwrite']        = FALSE;
  247. $cfg['Export']['remember_file_template']    = TRUE;
  248. $cfg['Export']['file_template_table']       = '__TABLE__';
  249. $cfg['Export']['file_template_database']    = '__DB__';
  250. $cfg['Export']['file_template_server']      = '__SERVER__';
  251.  
  252. $cfg['Export']['htmlexcel_columns']         = FALSE;
  253. $cfg['Export']['htmlexcel_null']            = 'NULL';
  254.  
  255. $cfg['Export']['htmlword_structure']        = TRUE;
  256. $cfg['Export']['htmlword_data']             = TRUE;
  257. $cfg['Export']['htmlword_columns']          = FALSE;
  258. $cfg['Export']['htmlword_null']             = 'NULL';
  259.  
  260. $cfg['Export']['xls_columns']               = FALSE;
  261. $cfg['Export']['xls_null']                  = 'NULL';
  262.  
  263. $cfg['Export']['csv_columns']               = FALSE;
  264. $cfg['Export']['csv_null']                  = 'NULL';
  265. $cfg['Export']['csv_separator']             = ';';
  266. $cfg['Export']['csv_enclosed']              = '"';
  267. $cfg['Export']['csv_escaped']               = '\\';
  268. $cfg['Export']['csv_terminated']            = 'AUTO';
  269. $cfg['Export']['excel_columns']             = FALSE;
  270. $cfg['Export']['excel_null']                = 'NULL';
  271. $cfg['Export']['excel_edition']             = 'win'; // win/mac
  272.  
  273. $cfg['Export']['latex_structure']           = TRUE;
  274. $cfg['Export']['latex_data']                = TRUE;
  275. $cfg['Export']['latex_columns']             = TRUE;
  276. $cfg['Export']['latex_relation']            = TRUE;
  277. $cfg['Export']['latex_comments']            = TRUE;
  278. $cfg['Export']['latex_mime']                = TRUE;
  279. $cfg['Export']['latex_null']                = '\textit{NULL}';
  280. $cfg['Export']['latex_caption']             = TRUE;
  281. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  282. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';
  283.  
  284. $cfg['Export']['sql_structure']             = TRUE;
  285. $cfg['Export']['sql_data']                  = TRUE;
  286. $cfg['Export']['sql_compat']                = 'NONE';
  287. $cfg['Export']['sql_disable_fk']            = FALSE;
  288. $cfg['Export']['sql_use_transaction']       = FALSE;
  289. $cfg['Export']['sql_drop_database']         = FALSE;
  290. $cfg['Export']['sql_drop_table']            = FALSE;
  291. $cfg['Export']['sql_if_not_exists']         = FALSE;
  292. $cfg['Export']['sql_auto_increment']        = TRUE;
  293. $cfg['Export']['sql_backquotes']            = TRUE;
  294. $cfg['Export']['sql_dates']                 = FALSE;
  295. $cfg['Export']['sql_relation']              = FALSE;
  296. $cfg['Export']['sql_columns']               = FALSE;
  297. $cfg['Export']['sql_delayed']               = FALSE;
  298. $cfg['Export']['sql_ignore']                = FALSE;
  299. $cfg['Export']['sql_hex_for_binary']        = TRUE;
  300. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  301. $cfg['Export']['sql_extended']              = FALSE;
  302. $cfg['Export']['sql_max_query_size']        = 50000;
  303. $cfg['Export']['sql_comments']              = FALSE;
  304. $cfg['Export']['sql_mime']                  = FALSE;
  305. $cfg['Export']['sql_header_comment']        = ''; // \n is replaced by new line
  306.  
  307. /**
  308.  * Import defaults
  309.  */
  310. $cfg['Import']['format'] = 'sql';
  311. $cfg['Import']['allow_interrupt'] = TRUE;
  312. $cfg['Import']['skip_queries'] = '0';
  313. $cfg['Import']['csv_replace'] = FALSE;
  314. $cfg['Import']['csv_terminated'] = ';';
  315. $cfg['Import']['csv_enclosed'] = '"';
  316. $cfg['Import']['csv_escaped'] = '\\';
  317. $cfg['Import']['csv_new_line'] = 'auto';
  318. $cfg['Import']['csv_columns'] = '';
  319. $cfg['Import']['ldi_replace'] = FALSE;
  320. $cfg['Import']['ldi_terminated'] = ';';
  321. $cfg['Import']['ldi_enclosed'] = '"';
  322. $cfg['Import']['ldi_escaped'] = '\\';
  323. $cfg['Import']['ldi_new_line'] = 'auto';
  324. $cfg['Import']['ldi_columns'] = '';
  325. $cfg['Import']['ldi_local_option'] = 'auto'; // 'auto' for autodetection, TRUE or FALSE for forcing
  326.  
  327.  
  328. /**
  329.  * Link to the official MySQL documentation.
  330.  * Be sure to include no trailing slash on the path.
  331.  * See http://dev.mysql.com/doc/ for more information
  332.  * about MySQL manuals and their types.
  333.  */
  334. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
  335.  
  336. /**
  337.  * Type of MySQL documentation:
  338.  *   viewable   - "viewable online", current one used on MySQL website
  339.  *   searchable - "Searchable, with user comments"
  340.  *   chapters   - "HTML, one page per chapter"
  341.  *   chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
  342.  *   big        - "HTML, all on one page"
  343.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  344.  *   none       - do not show documentation links
  345.  */
  346. $cfg['MySQLManualType'] = 'viewable';
  347.  
  348.  
  349. /**
  350.  * PDF options
  351.  */
  352. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  353. $cfg['PDFDefaultPageSize']  = 'A4';
  354.  
  355.  
  356. /**
  357.  * Language and charset conversion settings
  358.  */
  359. // Default language to use, if not browser-defined or user-defined
  360. $cfg['DefaultLang'] = 'en-utf-8';
  361.  
  362. // Force: always use this language - must be defined in
  363. //        libraries/select_lang.lib.php
  364. // $cfg['Lang']     = 'en-utf-8';
  365.  
  366. // Regullar expression to limit listed languages, eg. '^(cs|en)' for Czech and
  367. // English only
  368. $cfg['FilterLanguages'] = '';
  369.  
  370. // Default charset to use for recoding of MySQL queries, does not take
  371. // any effect when charsets recoding is switched off by
  372. // $cfg['AllowAnywhereRecoding'] or in language file
  373. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  374. $cfg['DefaultCharset'] = 'iso-8859-1';
  375.  
  376. // Allow charset recoding of MySQL queries, must be also enabled in language
  377. // file to make harder using other language files than unicode.
  378. // Default value is FALSE to avoid problems on servers without the iconv
  379. // extension and where dl() is not supported
  380. $cfg['AllowAnywhereRecoding'] = FALSE;
  381.  
  382. // You can select here which functions will be used for charset conversion.
  383. // Possible values are:
  384. //      auto   - automatically use available one (first is tested iconv, then
  385. //               recode)
  386. //      iconv  - use iconv or libiconv functions
  387. //      recode - use recode_string function
  388. $cfg['RecodingEngine'] = 'auto';
  389.  
  390. // Specify some parameters for iconv used in charset conversion. See iconv
  391. // documentation for details:
  392. // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
  393. $cfg['IconvExtraParams'] = '';
  394.  
  395. // Available charsets for MySQL conversion. currently contains all which could
  396. // be found in lang/* files and few more.
  397. // Charsets will be shown in same order as here listed, so if you frequently
  398. // use some of these move them to the top.
  399. $cfg['AvailableCharsets'] = array(
  400.     'iso-8859-1',
  401.     'iso-8859-2',
  402.     'iso-8859-3',
  403.     'iso-8859-4',
  404.     'iso-8859-5',
  405.     'iso-8859-6',
  406.     'iso-8859-7',
  407.     'iso-8859-8',
  408.     'iso-8859-9',
  409.     'iso-8859-10',
  410.     'iso-8859-11',
  411.     'iso-8859-12',
  412.     'iso-8859-13',
  413.     'iso-8859-14',
  414.     'iso-8859-15',
  415.     'windows-1250',
  416.     'windows-1251',
  417.     'windows-1252',
  418.     'windows-1256',
  419.     'windows-1257',
  420.     'koi8-r',
  421.     'big5',
  422.     'gb2312',
  423.     'utf-16',
  424.     'utf-8',
  425.     'utf-7',
  426.     'x-user-defined',
  427.     'euc-jp',
  428.     'ks_c_5601-1987',
  429.     'tis-620',
  430.     'SHIFT_JIS'
  431. );
  432.  
  433. /**
  434.  * Customization & design
  435.  *
  436.  * The graphical settings are now located in themes/themename/layout.inc.php
  437.  */
  438.  
  439. $cfg['LeftPointerEnable']   = TRUE;         // enable the left panel pointer
  440.                                             // (used when LeftFrameLight is FALSE)
  441.                                             // see also LeftPointerColor
  442.                                             // in layout.inc.php
  443.  
  444. $cfg['BrowsePointerEnable'] = TRUE;        // enable the browse pointer
  445.                                             // see also BrowsePointerColor
  446.                                             // in layout.inc.php
  447.  
  448. $cfg['BrowseMarkerEnable'] = TRUE;         // enable the browse marker
  449.                                             // see also BrowseMarkerColor
  450.                                             // in layout.inc.php
  451.  
  452. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  453.                                             // (this value will be emphasized (*2) for sql
  454.                                             // query textareas and (*1.25) for query window)
  455. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  456. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  457. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  458. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  459. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  460. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  461. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  462. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  463.                                             // (or at the top with vertical browse)
  464. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  465.                                             // (or at the bottom with vertical browse)
  466. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  467.                                             // (horizontal|vertical|horizontalflipped)
  468. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  469.                                             // creating columns (tbl_properties)
  470.                                             // (horizontal|vertical)
  471.  
  472. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  473.                                             // NOTE: CSS only works in IE browsers!
  474. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  475. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  476. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)
  477.  
  478. $cfg['EditInWindow']        = TRUE;         // Set to TRUE if Edit link should open the query to edit in the query window (assuming Javascript is enabled), and to FALSE if we should edit in the right panel 
  479. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  480. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  481. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  482.                                             // If FALSE, this utilizes JS-routines to display
  483.                                             // query history (lost by window close)
  484. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  485.                                             // (sql|files|history|full)
  486. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  487.                                             // should be kept?
  488. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  489. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  490.                                             // table rows.
  491. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  492.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.
  493.  
  494. $cfg['NaturalOrder']        = TRUE;         // Sort table and database in natural order
  495.  
  496.  
  497. //-----------------------------------------------------------------------------
  498. // custom-setup by mkkeck: 2004-05-04
  499. //    some specials for new icons and scrollings
  500. // FIXME:
  501. // 2004-05-08 rabus: We need to rearrange these variables.
  502.  
  503. $cfg['ShowHttpHostTitle']   = TRUE;            // show HttpHost in browsers window title (true|false)?
  504. $cfg['SetHttpHostTitle']    = '';              // if ShowHttpHostTitle=true, please set your host (server)
  505.                                              // or an other string, wich should be shown in browsers window title.
  506.                                              // If not set (or empty), the PMA will get your real Host-Adress.
  507.  
  508. $cfg['ErrorIconic']          = TRUE;    // show some icons for warning, error and information messages (true|false)?
  509. $cfg['MainPageIconic']       = TRUE;    // show icons in list on main page and on menu tabs (true|false)?
  510. $cfg['ReplaceHelpImg']       = TRUE;    // show help button instead of strDocu (true|false)?
  511.  
  512. // theme manager
  513. $cfg['ThemePath']           = './themes';    // using themes manager please set up here the path to 'themes'
  514.                                              // else leave empty
  515. $cfg['ThemeManager']        = TRUE;          // if you want to use selectable themes and if ThemesPath not empty
  516.                                              // set it to true, else set it to false (default is false);
  517. $cfg['ThemeDefault']        = 'xampp';         // set up default theme, if ThemePath not empty
  518.                                              // you can set up here an valid path to themes or 'original' for
  519.                                              // the original pma-theme
  520. $cfg['ThemePerServer']      = FALSE;         // allow diferent theme for each configured server
  521.  
  522. //-----------------------------------------------------------------------------
  523.  
  524.  
  525. /**
  526.  * Default queries
  527.  * %d will be replaced by the database name.
  528.  * %t will be replaced by the table name.
  529.  * %f will be replaced by a list of field names.
  530.  * (%t and %f only applies to DefaultQueryTable)
  531.  */
  532. $cfg['DefaultQueryTable']    = 'SELECT * FROM %t WHERE 1';
  533. $cfg['DefaultQueryDatabase'] = '';
  534.  
  535. /**
  536.  * SQL Query box settings
  537.  * These are the links display in all of the SQL Query boxes
  538.  */
  539. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  540. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  541. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  542. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  543. $cfg['SQLQuery']['Refresh']   = TRUE;       // Refresh the results page
  544.  
  545.  
  546. /**
  547.  * Webserver upload/save/import directories
  548.  */
  549. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  550.                                             // phpMyAdmin. For example './upload'. Leave empty for
  551.                                             // no upload directory support. Use %u for username 
  552.                                             // inclusion.
  553. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  554.                                             // server. For example './save'. Leave empty for no save
  555.                                             // directory support. Use %u for username inclusion.
  556. $cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
  557.                                             // docSQL files from that directory. For example
  558.                                             // './docSQL'. Leave empty for no docSQL import support.
  559. $cfg['TempDir']               = '';         // Directory where phpMyAdmin can save temporary files.
  560.                                             // This is needed for MS Excel export, see documentation
  561.                                             // how to enable that.
  562.  
  563.  
  564. /**
  565.  * Misc. settings
  566.  */
  567. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  568.                                             // does autodetection, which is a bit expensive for
  569.                                             // php < 4.3.0, but it is the only safe vay how to
  570.                                             // determine GD version.
  571. /**
  572.  * SQL Parser Settings
  573.  */
  574. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  575. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  576. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  577. // The graphical settings are now located in themes/themename/layout.inc.php
  578.  
  579. /**
  580.  * If you wish to use the SQL Validator service, you should be
  581.  * aware of the following:
  582.  * All SQL statements are stored anonymously for statistical purposes.
  583.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  584.  * All rights reserved.
  585.  */
  586. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  587. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  588. $cfg['SQLValidator']['password'] = '';      // Password for username
  589.  
  590. /**
  591.  * Developers ONLY!
  592.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  593.  */
  594. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  595. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  596. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  597.                                             // Anything below the threshold is not displayed
  598.  
  599.  
  600. /**
  601.  * MySQL settings
  602.  */
  603. // Column types;
  604. // varchar, tinyint, text and date are listed first, based on estimated popularity
  605. $cfg['ColumnTypes'] = array(
  606.    'VARCHAR',
  607.    'TINYINT',
  608.    'TEXT',
  609.    'DATE',
  610.    'SMALLINT',
  611.    'MEDIUMINT',
  612.    'INT',
  613.    'BIGINT',
  614.    'FLOAT',
  615.    'DOUBLE',
  616.    'DECIMAL',
  617.    'DATETIME',
  618.    'TIMESTAMP',
  619.    'TIME',
  620.    'YEAR',
  621.    'CHAR',
  622.    'TINYBLOB',
  623.    'TINYTEXT',
  624.    'BLOB',
  625.    'MEDIUMBLOB',
  626.    'MEDIUMTEXT',
  627.    'LONGBLOB',
  628.    'LONGTEXT',
  629.    'ENUM',
  630.    'SET',
  631.    'BOOL'
  632. );
  633.  
  634. // Attributes
  635. // Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically 
  636. // for MySQL >= 4.1.2, in tbl_properties.inc.php
  637.  
  638. $cfg['AttributeTypes'] = array(
  639.    '',
  640.    'BINARY',
  641.    'UNSIGNED',
  642.    'UNSIGNED ZEROFILL'
  643. );
  644.  
  645. // Available functions
  646. if ($cfg['ShowFunctionFields']) {
  647.     $cfg['Functions'] = array(
  648.        'ASCII',
  649.        'CHAR',
  650.        'SOUNDEX',
  651.        'LCASE',
  652.        'UCASE',
  653.        'NOW',
  654.        'PASSWORD',
  655.        'OLD_PASSWORD',
  656.        'MD5',
  657.        'SHA1',
  658.        'ENCRYPT',
  659.        'COMPRESS',
  660.        'UNCOMPRESS',
  661.        'RAND',
  662.        'LAST_INSERT_ID',
  663.        'COUNT',
  664.        'AVG',
  665.        'SUM',
  666.        'CURDATE',
  667.        'CURTIME',
  668.        'FROM_DAYS',
  669.        'FROM_UNIXTIME',
  670.        'PERIOD_ADD',
  671.        'PERIOD_DIFF',
  672.        'TO_DAYS',
  673.        'UNIX_TIMESTAMP',
  674.        'USER',
  675.        'WEEKDAY',
  676.        'CONCAT'
  677.     );
  678.  
  679.     // Which column types will be mapped to which Group?
  680.     $cfg['RestrictColumnTypes'] = array(
  681.        'VARCHAR'      => 'FUNC_CHAR',
  682.        'TINYINT'      => 'FUNC_NUMBER',
  683.        'TEXT'         => 'FUNC_CHAR',
  684.        'DATE'         => 'FUNC_DATE',
  685.        'SMALLINT'     => 'FUNC_NUMBER',
  686.        'MEDIUMINT'    => 'FUNC_NUMBER',
  687.        'INT'          => 'FUNC_NUMBER',
  688.        'BIGINT'       => 'FUNC_NUMBER',
  689.        'FLOAT'        => 'FUNC_NUMBER',
  690.        'DOUBLE'       => 'FUNC_NUMBER',
  691.        'DECIMAL'      => 'FUNC_NUMBER',
  692.        'DATETIME'     => 'FUNC_DATE',
  693.        'TIMESTAMP'    => 'FUNC_DATE',
  694.        'TIME'         => 'FUNC_DATE',
  695.        'YEAR'         => 'FUNC_DATE',
  696.        'CHAR'         => 'FUNC_CHAR',
  697.        'TINYBLOB'     => 'FUNC_CHAR',
  698.        'TINYTEXT'     => 'FUNC_CHAR',
  699.        'BLOB'         => 'FUNC_CHAR',
  700.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  701.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  702.        'LONGBLOB'     => 'FUNC_CHAR',
  703.        'LONGTEXT'     => 'FUNC_CHAR',
  704.        'ENUM'         => '',
  705.        'SET'          => ''
  706.     );
  707.  
  708.     // Map above defined groups to any function
  709.     $cfg['RestrictFunctions'] = array(
  710.         'FUNC_CHAR'   => array(
  711.             'ASCII',
  712.             'CHAR',
  713.             'SOUNDEX',
  714.             'LCASE',
  715.             'UCASE',
  716.             'PASSWORD',
  717.             'OLD_PASSWORD',
  718.             'MD5',
  719.             'SHA1',
  720.             'ENCRYPT',
  721.             'COMPRESS',
  722.             'UNCOMPRESS',
  723.             'LAST_INSERT_ID',
  724.             'USER',
  725.             'CONCAT'
  726.         ),
  727.  
  728.         'FUNC_DATE'   => array(
  729.             'NOW',
  730.             'CURDATE',
  731.             'CURTIME',
  732.             'FROM_DAYS',
  733.             'FROM_UNIXTIME',
  734.             'PERIOD_ADD',
  735.             'PERIOD_DIFF',
  736.             'TO_DAYS',
  737.             'UNIX_TIMESTAMP',
  738.             'WEEKDAY'
  739.         ),
  740.  
  741.         'FUNC_NUMBER' => array(
  742.             'ASCII',
  743.             'CHAR',
  744.             'MD5',
  745.             'SHA1',
  746.             'ENCRYPT',
  747.             'RAND',
  748.             'LAST_INSERT_ID',
  749.             'UNIX_TIMESTAMP',
  750.             'COUNT',
  751.             'AVG',
  752.             'SUM'
  753.         )
  754.     );
  755.  
  756.     // Default functions for above defined groups
  757.     $cfg['DefaultFunctions'] = array(
  758.         'FUNC_CHAR'         => '',
  759.         'FUNC_DATE'         => '',
  760.         'FUNC_NUMBER'       => '',
  761.         'first_timestamp'   => 'NOW'
  762.     );
  763.  
  764.  
  765. } // end if
  766.  
  767. // Search operators
  768. $cfg['NumOperators'] = array(
  769.    '=',
  770.    '>',
  771.    '>=',
  772.    '<',
  773.    '<=',
  774.    '!=',
  775.    'LIKE',
  776.    'NOT LIKE'
  777. );
  778.  
  779. $cfg['TextOperators'] = array(
  780.    'LIKE',
  781.    'LIKE %...%',
  782.    'NOT LIKE',
  783.    '=',
  784.    '!=',
  785.    'REGEXP',
  786.    'NOT REGEXP'
  787. );
  788.  
  789. $cfg['EnumOperators'] = array(
  790.    '=',
  791.    '!='
  792. );
  793.  
  794. $cfg['SetOperators'] = array(
  795.    'IN',
  796.    'NOT IN'
  797. );
  798.  
  799. $cfg['NullOperators'] = array(
  800.    'IS NULL',
  801.    'IS NOT NULL'
  802. );
  803.  
  804. $cfg['UnaryOperators'] = array(
  805.    'IS NULL'     => 1,
  806.    'IS NOT NULL' => 1
  807. );
  808.  
  809. ?>
  810.